package com.chc.web.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chc.web.menu.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2021/12/22/23:26
 * @Description:
 */
public interface MenuMapper extends BaseMapper<Menu>{
    //根据用户id查询权限列表
    List<Menu> getMenuListByUserId(@Param("userId") Long userId);
    //根据读者id查询权限列表
    List<Menu> getMenuListByUserIdForReader(@Param("userId") Long userId);
    //根据角色id查询权限信息
    List<Menu> getMenuListByRoleId(@Param("roleId") Long roleId);
}
